package com.booksystem.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotNull;
import lombok.Data;

/**
 * <p>
 *   更新购物车商品数量请求参数对象
 * </p>
 * @author 段伟豪
 */
@Data
@ApiModel(description = "更新购物车商品数量请求参数")
public class CartUpdateQuantityDTO {

    /**
     * 购物车记录ID
     */
    @NotNull(message = "购物车记录ID不能为空")
    @ApiModelProperty(value = "购物车记录ID", example = "101")
    private Long cartId;

    /**
     * 商品数量
     */
    @NotNull(message = "商品数量不能为空")
    @ApiModelProperty(value = "商品数量", example = "3")
    private Integer quantity;
}